# target_name:=
# module_dir:=
ker_path:=/lib/modules/$(shell uname -r)/build
embed_ker_path:=../linux

all: $(module_dir)/$(target_name).c
	@$(MAKE) ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -C $(embed_ker_path) M=$(module_dir)

native: $(module_dir)/$(target_name).c
	@echo $(target_name).c $(obj-m)
	@$(MAKE) ARCH=x86 -C $(ker_path) M=$(module_dir)

.PHONY: all native clean
